<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ClientCar extends Model
{
    protected $guarded = ['id'];

    public function client()
    {
    	return $this->belongsTo(Client::class);
    }

    public function type()
    {
    	return $this->belongsTo(Cartype::class,'car_type_id');
    }

    public function brand()
    {
    	return $this->belongsTo(CarBrand::class,'car_brand_id');
    }

    public function serie()
    {
    	return $this->belongsTo(CarSerie::class,'car_serie_id');
    }

    public function model()
    {
        return $this->belongsTo(CarModel::class,'car_model_id');
    }
}
